/**
 * Pointer Addition Demo
*/
#include <stdio.h>
#define SIZE 4
int main()
{
    short dates[SIZE];
    short *ptsh;
    short index;
    double bills[SIZE];
    double *ptd;

    ptsh = dates;
    ptd = bills;
    printf("%23s %10s\n","short","double");
    for(index=0;index<SIZE;index++)
    {
        printf("pointers + %d:%10p %10p\n",
        index,ptsh + index,ptd+index);
    }
    return 0;
}